import request from '@/utils/request'

// 查询装备列表
export function listEquipment(query) {
  return request({
    url: '/HubSys/equipment/list',
    method: 'get',
    params: query
  });
}

// 查询装备详细信息
export function getEquipment(equipmentid) {
  return request({
    url: '/HubSys/equipment/' + equipmentid,
    method: 'get'
  });
}

// 新增装备
export function addEquipment(data) {
  return request({
    url: '/HubSys/equipment',
    method: 'post',
    data: data
  });
}

// 修改装备
export function updateEquipment(data) {
  return request({
    url: '/HubSys/equipment',
    method: 'put',
    data: data
  });
}

// 删除装备
export function delEquipment(equipmentids) {
  return request({
    url: '/HubSys/equipment/' + equipmentids.join(','),
    method: 'delete'
  });
}
